import request from "../utils/request";


export async function getCSVData(data) {
  return request({
    method: "post",
    url: `/dataCSV/data`,
    data
  });
}

export async function getDataCSVList(params) {
  return request({
    method: "get",
    url: `/dataCSV/list`,
    params
  });
}

export async function getDataCSVAllList(params) {
  return request({
    method: "get",
    url: `/dataCSV/all`,
    params
  });
}

export async function addDataCSV(data) {
  return request({
    method: "post",
    url: `/dataCSV/add`,
    data
  });
}

export async function editDataCSV(data) {
  return request({
    method: "put",
    url: `/dataCSV/edit`,
    data
  });
}

export async function delDataCSV(data) {
  return request({
    method: "delete",
    url: `/dataCSV/del`,
    data
  });
}

export async function testDataCSV(data) {
  return request({
    method: "post",
    url: `/dataCSV/check`,
    data
  });
}